#!/bin/bash

export FLASK_APP=gitapp
export FLASK_ENV=development

case "$1" in
    "dev")
        echo "start dev server"
        python -m flask run --host=0.0.0.0 --port=8001 > s.log 2>&1 &
        ;;
    "db")
        echo "do init-db"
        flask init-db
        ;;
    *)
        echo "[USEAGE:]"
        echo "1. ./start dev"
        echo "2. ./start db"
        ;;
esac
    

